package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.Activation;
import cn.wolfcode.trip.base.service.IActivationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ActivationController class
 *
 * @author lishuanwang
 * @date 2019/6/4
 */
@RestController
@RequestMapping("checkLogin")
public class ActivationController {
    @Autowired
    private IActivationService activationService;
    @GetMapping
    public Boolean checkLogin(Activation activation){
        return activationService.checkActivation(activation);
    }
}
